import Vue from '../node_modules/vue/dist/vue.js'
//导入vue-router包
import VueRouter from 'vue-router'
//手动安装VueRouter
Vue.use(VueRouter)

//导入Account组件
import account from './main/Account.vue'
//导入GoodsList组件
import goodslist from './main/GoodsList.vue'

//导入Account的两个子组件
import login from './children/login.vue'
import regiter from './children/regiter.vue'
//路由对象
var router = new VueRouter({
	routes:[
		{
			path:'/account',
			component:account,
			children:[
				{path:'login',component:login},
				{path:'regiter',component:regiter}
			]
			
		},
		{path:'/goodslist',component:goodslist}
	]
})

export default router